package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.queryParams.EarthquakeDisasterQueryParams;
import com.css.fxfzypg.modules.baseData.entity.EarthquakeDisasterEntity;
import com.css.fxfzypg.modules.baseData.vo.EarthquakeDisasterVO;
import com.css.fxfzypg.modules.similitudeAnalyse.entity.RealEarthquakeEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author y1fan
 * @create 2022-08-17 17:14
 */
public interface EarthquakeDisasterRepository {


    Boolean saveEarthquakeDisaster(EarthquakeDisasterEntity earthquakeDisasterEntity);

    EarthquakeDisasterEntity getEarthquakeDisasterById(String dataEarthquakeDisasterId);

    Map<String,Object> getAllEarthquakeDisasterByParams(EarthquakeDisasterQueryParams queryParams);

    Boolean updateEarthquakeDisaster(EarthquakeDisasterEntity earthquakeDisasterEntity);

    Boolean deleteEarthquakeDisaster(List<String> ids);

    List<EarthquakeDisasterEntity> exportExcel();

    void importExcel(List<EarthquakeDisasterEntity> earthquakeDisasterEntities);

    List<EarthquakeDisasterEntity> earthquakeSelect(RealEarthquakeEntity realEarthquake);

    List<EarthquakeDisasterVO> findFormDataList(EarthquakeDisasterQueryParams queryParams);

    Integer countByCounty(String name);

    Integer countByCity(String name);

    Integer countByProvince(String name);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
